//
//  TL_FacebookManager.h
//  WXReader
//
//  Created by LL on 2020/9/8.
//  Copyright © 2020 Andrew. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "TL_UserInfoModel.h"

@class TL_FacebookManager;

typedef NS_ENUM(NSUInteger, TL_FacebookState) {
    TL_FacebookStateLogin,
    TL_FacebookStateBinding
};

NS_ASSUME_NONNULL_BEGIN

@protocol TL_FacebookManagerDelegate <NSObject>

@optional

// 登录成功
- (void)facebookLoginSuccess:(TL_FacebookManager *)manager userInfo:(TL_UserInfoModel *)userInfo;

// 登录失败
- (void)facebookLoginFail:(TL_FacebookManager *)manager error:(NSString *)error;

@end

@interface TL_FacebookManager : NSObject

@property (nonatomic, weak) id<TL_FacebookManagerDelegate> delegate;

SINGLETON_INTERFACE

- (void)tunedUpFacebookWithState:(TL_FacebookState)state;

@end

NS_ASSUME_NONNULL_END
